package com.meida.module.bus.provider.handler;

import com.meida.common.base.entity.EntityMap;
import com.meida.common.mybatis.interceptor.PageInterceptor;
import com.meida.common.mybatis.model.PageParams;
import com.meida.common.mybatis.query.CriteriaQuery;
import com.meida.msg.client.entity.MsgType;
import org.springframework.stereotype.Component;

/**
 * 后台消息分类接口逻辑
 *
 * @author zyf
 */
@Component
public class BusMsgTypeListHandler implements PageInterceptor<MsgType> {

    @Override
    public void prepare(CriteriaQuery<MsgType> cq, PageParams pageParams, EntityMap params) {
        cq.eq(MsgType.class, "typeCode", "SystemMsg");
    }
}
